from sanic import Blueprint, Sanic, json

bp=Blueprint("index",url_prefix="/")

app=Sanic.get_app()

@bp.route('/index',methods=['GET'])
async def test(request):
    return json({'hello': 'world'})
